package ar.com.cema.methodology.analyzer.services;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import ar.com.cema.methodology.analyzer.model.Person;
import ar.com.cema.methodology.analyzer.model.Survey;
import ar.com.cema.methodology.analyzer.services.business.SurveyBO;

@Repository
public class SurveyServiceImpl implements SurveyService {
	
	@Autowired
	private SurveyBO surveyBO;
	
	@Override
	public Survey createEmptySurveyFor(Person aPerson) {
		return surveyBO.createEmptySurveyFor(aPerson);
	}

	@Override
	public Survey save(Survey survey) {
		return surveyBO.save(survey);
	}

	public void setSurveyBO(SurveyBO surveyBO) {
		this.surveyBO = surveyBO;
	}

	@Override
	public Set<Person> listInterviewees() {
		return surveyBO.listInterviewees();
	}

}
